//
//  TL_SettingSwitchTableViewCell.m
//  WXReader
//
//  Created by Andrew on 2018/7/11.
//  Copyright © 2018年 Andrew. All rights reserved.
//

#import "TL_SettingSwitchTableViewCell.h"

@implementation TL_SettingSwitchTableViewCell

- (void)createSubviews
{
    [super createSubviews];
    
    self.switchButton = [[KLSwitch alloc] initWithFrame:CGRectMake(SCREEN_WIDTH - 51 - kHalfMargin - kQuarterMargin, 10, 51, 31)];
    self.switchButton.transform = CGAffineTransformMakeScale(0.7, 0.7);//缩放
    self.switchButton.onTintColor = kMainColor;
    self.switchButton.contrastColor = UIColor.whiteColor;
    [self.contentView addSubview:self.switchButton];
    
    [self.leftTitleLabel mas_updateConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(-51 -kQuarterMargin - kMargin);
    }];
}

@end
